//
//  WWComposeButton.swift
//  SinWEiBo
//
//  Created by 胡良志 on 2018/4/18.
//  Copyright © 2018年 HuLiangZhi. All rights reserved.
//

import UIKit

let btnWidth : CGFloat = 80 //按钮宽度
let btnHeight : CGFloat = 110 //按钮高度

class WWComposeButton: UIButton {


    override init(frame: CGRect) {
        super.init(frame: frame)
        self.titleLabel?.textAlignment = .center
        self.titleLabel?.font = UIFont.systemFont(ofSize: 14)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func titleRect(forContentRect contentRect: CGRect) -> CGRect {
        return CGRect(x: 0, y: btnWidth, width: btnWidth, height: btnHeight - btnWidth)
    }
    override func imageRect(forContentRect contentRect: CGRect) -> CGRect {
        return CGRect(x: 0, y: 0, width: btnWidth, height: btnWidth)
    }
    
}
